import re
 #1   长度为8-10的用户密码
# while 1:
#    passwd = input("请输密码：")
#    ret = re.findall(r'(^[a-zA-Z](?=.*[_])(?=.*[a-zA-Z])(?=.*[0-9]).{8,10})', passwd)
#    print(ret)



#2     ip地址匹配
# ipA = r'(^([1-9]|[1-9]\d|1[0-2][0-6])\.(([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])\.){2}([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])$)'
# ipB = r'(^(12[8-9]|1[3-8][0-9]|19[0-1])\.(([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])\.){2}([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])$)'
# ipC = r'(^(19[2-9]|2[0-1][0-9]|22[0-3])\.(([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])\.){2}([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])$)'
# input_ip = input("请输入你要匹配的ip:")
# if re.findall(r'(^([1-9]|[1-9]\d|1[0-2][0-6])\.'
#               r'(([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])\.){2}'
#               r'([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])$)',
#               input_ip):
#     print("A类地址")
# elif re.findall(r'(^(12[8-9]|1[3-8][0-9]|19[0-1])\.'
#                 r'(([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])\.){2}'
#                 r'([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])$)',
#                 input_ip):
#     print("B类地址")
# elif re.findall(r'(^(19[2-9]|2[0-1][0-9]|22[0-3])\.'
#                 r'(([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])\.){2}'
#                 r'([0-9]|[1-9]\d|1\d\d|2[0-5][0-5])$)',
#                 input_ip):
#     print("C类地址")


 #3   邮箱匹配
# email = input("请输入你要匹配的邮箱号：")
# print(re.findall(r'(^\w{8,16}@.[a-zA-Z]+\.com|mail|cn)',email))

 #4 电话号码验证
phone_num = input("请输入你的电话号码：")
print(re.findall(r'(1[0-9]{10}$|\+\d+ 1[0-9]{10}$)',phone_num))